﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Globalization;

namespace Barbar.UrlGuard.BL {
  public class Message {
    private string m_Key;
    private string m_Value;

    public string Key {
      get { return m_Key; }
      set { m_Key = value; }
    }

    public string Value {
      get { return m_Value; }
      set { m_Value = value; }
    }

    public override int GetHashCode() {
      return Key.GetHashCode();
    }

    public override string ToString() {
      return string.Format(CultureInfo.InvariantCulture, "Key={0},Value={1}", Key ?? "null", Value ?? "null");
    }
  }
}
